package cn.itcast.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.context.annotation.Bean;

@MapperScan("cn.itcast.user.mapper")
@SpringBootApplication
public class UserApplication2 {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication2.class, args);
    }
    @Bean
    public WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> webServerFactoryCustomizer2() {
        return factory -> factory.setPort(8082);
    }
}
